<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>java</title>
</head>
<body>

<p>java</p>
<button onclick="Function()">java</button>
<p id="demo"></p>
<script>
function myFunction(){
	var x="";
	for (var i=0;i<5;i++){
		x=x + "java" + i + "<br>";
	}
	document.getElementById("demo").innerHTML=x;
}
</script>

</body>
</html>
